<?
require_once '../../resources/security/security.php';
require_once '../../../classes/category.class.php';
$module_id	= 5;
$warehouse_id = getValue('warehouse_id','int','SESSION',0) ;
if($isAdmin || $warehouse_id == 0) $here = "Tổng kho";
else $here = "Hiện đang ở Kho ".$warehouse_id;
$module_name = 'Báo cáo - '.$here;
//Kiem tra dang nhap
checkLogged();
//Kiem tra quyen truy cap module
if(!checkAccessModule($module_id)){
	redirect($fs_denypath);
}
$where_warehouse_id = '';
if(!$isAdmin) $where_warehouse_id = ' AND whr_warehouse_id IN('.$warehouse_id.')';
$list_wah = array(0=>"Chọn kho");
$arrWah = warehouse();
foreach($arrWah as $wah){
    $list_wah[$wah["wah_id"]] = $wah["wah_name"];
}
$arr_supplies = supplies();
$list_supplies = array(0=>"Chọn Vật tư");
foreach($arr_supplies as $sup){
    $list_supplies[$sup["sup_id"]] = $sup["sup_name"];
}
$arr_supplier = supplier();
$list_supplier = array(''=>"Chọn nhà cung cấp");
foreach($arr_supplier as $supr){
    $list_supplier[$supr["sup_id"]] = $supr["sup_name"];
}
$bg_errorMsg = '';
$bg_table = 'warehouse_report';
$id_field = 'whr_id';
?>